#include"Thread.hpp"

int main()
{
    ThreadModel::thread t([](){
        while(true)
        {
            std::cout<<"我是新线程tid:"<<pthread_self()<<std::endl;
            sleep(1);
        }
        return nullptr;
    });

    t.start();

    sleep(3);
    t.stop();
    t.join();
    return 0;
}